﻿@{
    Layout = "~/Views/Shared/OA/_LayoutReport.cshtml";
}
@section Head{
    @RenderSection("Head", false)
}
@if (IsSectionDefined("Toolbar") || IsSectionDefined("Query"))
{
    <div class="toolbar">
        <p style="line-height:40px;font-size:20px;font-weight:bold;text-indent:10px;text-align:center">@ViewBag.Title</p>
    </div>
    <div id="toolbar" class="toolbar toolbar2">
        <div class="wrap">
            <div class="comands">
                @Html.MyNet().Button(new ButtonOptions { Text = "查看涉及题目", Click = "readQuestion()", Power = "TS_ReportQuestion" })
                @RenderSection("Toolbar", false)
            </div>
            <div class="search">
                @RenderSection("Query", false)
            </div>
        </div>
    </div>
}
<ul id="menu" class="menu">
    <li>
        <ul>
            @RenderSection("Menu", false)
        </ul>
    </li>
</ul>
@RenderSection("Main")
@RenderBody()
<script src="~/App_Content/Script/OA/_Index.js"></script>
@if (CommonAppService.Current.HasModulePower("TS_ReportQuestion"))
{
    <script>
        function refresh() {
            window.location.reload();
        }

        function readQuestion() {
            var url = "/TS/Question/IndexForReport?sha1=" + con.Sha1;
            url += "&LicenseId=";
            url += con.LicenseId;
            url += "&BeginYear=";
            url += con.BeginYear;
            url += "&EndYear=";
            url += con.EndYear;
            url += "&TestType=";
            url += con.TestType;
            url += "&Area=";
            url += con.Area;
            url += "&Arts=";
            url += con.Arts;
            navNew('IndexForReport_' + con.Sha1, '@ViewBag.Title' + '题目列表', url);
        }

        function readQuestionSha1(sha1) {
            var url = "/TS/Question/IndexForReport?sha1=" +sha1;
            url += "&LicenseId=";
            url += con.LicenseId;
            url += "&BeginYear=";
            url += con.BeginYear;
            url += "&EndYear=";
            url += con.EndYear;
            url += "&TestType=";
            url += con.TestType;
            url += "&Area=";
            url += con.Area;
            url += "&Arts=";
            url += con.Arts;
            navNew('IndexForReport_' + con.Sha1, '@ViewBag.Title' + '题目列表', url);
        }
    </script>


}
else
{
    <script>
        function refresh() {
            window.location.reload();
        }

        function readQuestion() {

        }

        function readQuestionSha1(sha1) {

        }
    </script>
}



